using System;
using System.Collections.Generic;

namespace Data.Models
{
    public partial class PurchaseDetail
    {
        public PurchaseDetail()
        {
            this.BillDetails = new List<BillDetail>();
        }

        public int ID { get; set; }
        public int GoodID { get; set; }
        public int PurchaseID { get; set; }
        public int Quantity { get; set; }
        public double Price { get; set; }
        public Nullable<double> Discount { get; set; }
        public double TotalMoney { get; set; }
        public string Description { get; set; }
        public Nullable<int> MaterialID { get; set; }
        public Nullable<double> Price_In { get; set; }
        public virtual ICollection<BillDetail> BillDetails { get; set; }
        public virtual Material Material { get; set; }
        public virtual Product Product { get; set; }
        public virtual Purchase Purchase { get; set; }
    }
}
